package main.java.indi.zyj.c150.dp;

import java.util.Scanner;

public class _01_basic {


    public static void main(String[] args){
        System.out.println("二维数组的列数：");
        Scanner scan=new Scanner(System.in);
        int r=scan.nextInt();
        int c=scan.nextInt();
        int[][] matrix = new int[r][c];
        scan.nextLine();//用来跳过行列后的回车符
        for(int i=0;i<r;i++){
            for(int j=0;j<c;j++){
                matrix[i][j]=scan.nextInt();
                System.out.print(matrix[i][j]+",");
            }
            System.out.println("");
        }
    }




}
